package edu.uc.persistence;

import java.util.ArrayList;
import java.util.List;

import edu.uc.dto.User;

import android.util.Log;

/**
 * Test Stub for UserDAO
 * Adds users into database USERS by testing the following methods
 * 
 * @author Robert
 *
 */
public class UserDAOStub{

	public List<String> getUsers() throws Exception {
		Log.i(getClass().getName(), "Entering users into stub");
		ArrayList<String> allUsers = new ArrayList<String>();
		
		allUsers.add("Robert Osley test@test.com test");	

		return allUsers;
	}

	public List<User> fetchUserById(String id) throws Exception {
		// declare our return type.
		ArrayList<User> allUsers = new ArrayList<User>();
		
		// create some dummy ids.
		User testUser = new User();
		testUser.setFirstName("Jimmy");
		testUser.setLastName("McyD");
		testUser.setEmail("me@me.com");
		testUser.setPassword("test");
		
		allUsers.add(testUser);
		
		User testUser2 = new User();
		testUser2.setFirstName("Chris");
		testUser2.setLastName("K");
		testUser2.setEmail("me2@me2.com");
		testUser2.setPassword("test2");
		
		allUsers.add(testUser2);
		
		// return results.
		return allUsers;
		
	}

}
